/**
 * 
 */
package se.sics.kompics.tutorial.tutorial1;

import se.sics.kompics.launch.Scenario;
import se.sics.kompics.launch.Topology;

/**
 * @author Théo Chamley
 *
 */
public final class PFD_Executor {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Topology topology1 = new Topology()
		{
			private static final long serialVersionUID = 5917842835397017771L;

			{
				node(1, "127.0.0.1", 22031);
				node(2, "127.0.0.1", 22032);
				node(3, "127.0.0.1", 22033);
				link(1, 2, 3000, 0).bidirectional();
				link(2, 3, 3000, 0);
				defaultLinks(1000, 0);
			}
		};
		
		Scenario scenario1 = new Scenario(PFD_Main.class) {
			{
				command(1, "S500");
				command(2, "S500");
				command(3, "S500");
			}
		};
		
		scenario1.executeOn(topology1);
		System.exit(0);
	}

}
